
((  
((  (  )

       (    ,   )
((
native IssueBuildOrder takes unit whichPeon, string unitToBuild, real x, real y returns boolean
native IssueBuildOrderById takes unit whichPeon, integer unitId, real x, real y returns boolean
))
//           IssueTargetOrderById,   

((
function IssueBuildOrderByIdLocBJ takes unit whichPeon, integer unitId, location loc returns boolean
    if (unitId == 'ugol') then // 
        return IssueHauntOrderAtLocBJ(whichPeon, loc)
    else
        return IssueBuildOrderById(whichPeon, unitId, GetLocationX(loc), GetLocationY(loc))
    endif
endfunction
))
))


((  

   ,  () ,      
((
native IssueImmediateOrder takes unit whichUnit, string order returns boolean
native IssueImmediateOrderById takes unit whichUnit, integer order returns boolean
))

   
((
native IssuePointOrder takes unit whichUnit, string order, real x, real y returns boolean
native IssuePointOrderById takes unit whichUnit, integer order, real x, real y returns boolean
native IssuePointOrderLoc takes unit whichUnit, string order, location whichLocation returns boolean
native IssuePointOrderByIdLoc takes unit whichUnit, integer order, location whichLocation returns boolean
))

    (     , ,  - )
((
native IssueTargetOrder takes unit whichUnit, string order, widget targetWidget returns boolean
native IssueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean
))

   :
"harvest" -  
"eattree" -  
"grabtree" -  
"sentinel" -  
))

((  - ,   
   
((
native GroupImmediateOrder takes group whichGroup, string order returns boolean
native GroupImmediateOrderById takes group whichGroup, integer order returns boolean
))

    
((
native GroupTargetOrder takes group whichGroup, string order, widget targetWidget returns boolean
native GroupTargetOrderById takes group whichGroup, integer order, widget targetWidget returns boolean
))

     
((
native GroupPointOrder takes group whichGroup, string order, real x, real y returns boolean
native GroupPointOrderById takes group whichGroup, integer order, real x, real y returns boolean
native GroupPointOrderLoc takes group whichGroup, string order, location whichLocation returns boolean
native GroupPointOrderByIdLoc takes group whichGroup, integer order, location whichLocation returns boolean
))
))


((  
  **instantTargetWidget**   **targetWidget**
((
native IssueInstantTargetOrder takes unit whichUnit, string order, widget targetWidget, widget instantTargetWidget returns boolean
native IssueInstantTargetOrderById takes unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget returns boolean
))
:    **IssueInstantTargetOrder**,   **whichUnit**   **order**  **targetWidget**    **instantTargetWidget**
//:     "dropitem"  ,          (,   .    ,   ).       targetWidget  instantTargetWidget   -    .    ,        .    widget     ,    ,   . 
//order_dropitem = 852001

  **instantTargetWidget**  
((
native IssueInstantPointOrder takes unit whichUnit, string order, real x, real y, widget instantTargetWidget returns boolean
native IssueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean
))
:    **IssueInstantPointOrder**   **whichUnit**   **order**   (x,y)  -       **instantTargetWidget**.
//:       "dropitem"   targetWidget     instantTargetWidget  .        .    widget     ,    ,   .
//order_dropitem = 852001
))

((   
    target (     ,    )
((
native UnitDropItemTarget takes unit whichUnit, item whichItem, widget target returns boolean
))

    (   )
((
native UnitDropItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean
))

    (    ,   ). 
((
native UnitDropItemSlot takes unit whichUnit, item whichItem, integer slot returns boolean
))

 
((
native UnitUseItem takes unit whichUnit, item whichItem returns boolean
))

    (      widget:   , . )
((
native UnitUseItemTarget takes unit whichUnit, item whichItem, widget target returns boolean
))

   
((
native UnitUseItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean
))


852002 to 852007 (moveslot):          ,  .  852002     ,  852003     ..    IssueInstantTargetOrderById    .

852008 to 852013 (useslot):  ,  ,  ,     .  852008     ,  852009     ..
))


((    ( )
  (  !!!)
((
native UnitAddItem takes unit whichUnit, item whichItem returns boolean 
))
   
((
native UnitAddItemById takes unit whichUnit, integer itemId returns item
))
      
((
native UnitAddItemToSlotById takes unit whichUnit, integer itemId, integer itemSlot returns boolean
))
 
((
native UnitRemoveItem takes unit whichUnit, item whichItem returns nothing
))
    
((
native UnitRemoveItemFromSlot takes unit whichUnit, integer itemSlot returns item
))
  (   ,        .)
((
native UnitInventorySize takes unit whichUnit returns integer
))
  
((
native UnitItemInSlot takes unit whichUnit, integer itemSlot returns item
))
))

(( 
            forWhichPlayer:
1)  /        ( IssueNeutralImmediateOrder)
2)       smart,     ( IssueNeutralTargetOrder)  
3)        (IssueNeutralPointOrder)

      /, neutralStructure    ,    - . 

   
((
native IssueNeutralImmediateOrder takes player forWhichPlayer, unit neutralStructure, string unitToBuild returns boolean
native IssueNeutralImmediateOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId returns boolean
))
:  **IssueNeutralImmediateOrder** -   ,    neutralStructure (  )    forWhichPlayer -  (  )

     
((
native IssueNeutralTargetOrder takes player forWhichPlayer,unit neutralStructure, string unitToBuild, widget target returns boolean
native IssueNeutralTargetOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId, widget target returns boolean
))
:  **IssueNeutralTargetOrder** -  -    neutralStructure   (    ;   ,     )

     
(( 
native IssueNeutralPointOrder takes player forWhichPlayer,unit neutralStructure, string unitToBuild, real x, real y returns boolean
native IssueNeutralPointOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId, real x, real y returns boolean
))
:  **IssueNeutralPointOrder** -  -    neutralStructure  . ,  ,       . ,      

           -  .    .     

    ,      .

http://xgm.guru/p/wc3/warden-buyitem // 

 Warden
((
function BuyItem takes unit FromShop,integer ItemID,unit ToUnit returns boolean
  if IssueNeutralTargetOrder(GetOwningPlayer(ToUnit), FromShop, "smart", ToUnit) or IssueTargetOrder(FromShop, "smart", ToUnit) then
    return IssueNeutralImmediateOrderById(GetOwningPlayer(ToUnit), FromShop, ItemID) or IssueImmediateOrderById(FromShop, ItemID)
  endif
  return false
endfunction
))

 agentex
((
function BuyItem takes unit u, unit shop, integer id returns boolean
  call IssueNeutralTargetOrder(GetOwningPlayer(u), shop, "smart", u)
  return IssueNeutralImmediateOrderById(GetOwningPlayer(u), shop, id)
endfunction
))
))

 
((
native SelectHeroSkill takes unit whichHero, integer abilcode returns nothing
))

    851971 (smart):  (-  -),    .

    852000 (skillmenu):  (  ),       .          ,     ,  ,    .

    851994 (buildmenu):  (  ),    ,   .

    851973 (stunned):     ,   ,   AOws ( ),      .

   ,   (   skillmenu)  : OrderId("attributemodskill") = 852576
))


















 